package com.qumitech.visualnovel.datasource.app;

import com.qumitech.visualnovel.model.dao.app.UserForbidden;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserForbiddenMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserForbidden record);

    int insertSelective(UserForbidden record);

    UserForbidden selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserForbidden record);

    int updateByPrimaryKey(UserForbidden record);

    Set<String> findForbiddenIp(@Param("ipList") Set<String> ipList);

    Set<String> findForbiddenDeviceId(@Param("deviceList") Set<String> deviceList);

    List<Long> getForbiddenUidList(@Param("uidList") List<Long> uidList,
                                   @Param("startTime") String startTime,
                                   @Param("endTime") String endTime);
}